import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import http from './http'
import './assets/css/style.css'
Vue.prototype.$http = http 
Vue.config.productionTip = false


Vue.use(ElementUI)
Vue.mixin({
  computed:{
    uploadURL(){
      return 'http://127.0.0.1:3000/admin/api/upload'
    }
  },
  methods:{
    getAuthHeaders(){
      return {
        Authorization:`Bearer ${sessionStorage.token || ''}`
      }
    }
  }
})


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
